package day03.ext;

import java.util.ArrayList;

public class CardDemo {
    public static void main(String[] args) {
        ArrayList<Card> cards = new ArrayList<>();
        for (Rank rank: Rank.values()){
            cards.add(new Card(Suit.DIAMOND, rank));
            cards.add(new Card(Suit.CLUB, rank));
            cards.add(new Card(Suit.HEART, rank));
            cards.add(new Card(Suit.SPADE, rank));
        }
        System.out.println(cards);
    }
}
